<template>
	<view>
		<uni-nav-bar style="width: 100%;" left-icon="back" title="兑换记录" @clickLeft="clickLeft" @clickRight="clickRight"></uni-nav-bar>
		<date-component></date-component>
		<view class="cmt-w-box" v-for="(item, i) in 3" :key="i">
			<view class="cmd_1 cmd-top">
				<view class="cmt-w-left"><text class="cmt-w_2">HNW/USDT</text></view>
				<view class="cmt-w-right"><text class="cmt-w_3">13:12 04/12</text></view>
			</view>
			<view class="cmd_1" style="border-bottom: 2rpx solid #E8E8E8;">
				<view class="cmt-w-list">
					<text>消耗(USDT)</text>
					<view class="cmt-w-l-marTop"><text class="cmt-w-list-nber">2.56</text></view>
				</view>
				<view class="cmt-w-list">
					<text>得到(USDT)</text>
					<view class="cmt-w-l-marTop">
						<text class="cmt-w-list-nber">
							2.56
							<text>USDT</text>
						</text>
					</view>
				</view>
				<view class="cmt-w-list">
					<text>汇率(HNW)</text>
					<view class="cmt-w-l-marTop">
						<text class="cmt-w-list-nber">
							1
							<text>USDT</text>
						</text>
					</view>
				</view>
				<view class="cmt-w-list">
					<text>手续费(USDT）</text>
					<view class="cmt-w-l-marTop"><text class="cmt-w-list-nber">233</text></view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue';
import dateComponent from '../../component/date-component.vue';
export default {
	components: { uniNavBar, dateComponent },
	data() {
		return {
			from_minSelect: '1900/01/01',
			from_maxSelect: '2050/12/31',
			to_minSelect: '1900/01/01',
			to_maxSelect: '2050/12/31',
			from: '',
			to: ''
		};
	},
	methods: {
		clickLeft() {
			uni.navigateBack({
				delta: 1
			});
		},
		getFromData(time) {
			this.to_minSelect = time;
			this.from = time;
		}
	}
};
</script>

<style lang="scss">
.cmd_1 {
	display: flex;
	justify-content: space-between;
	color: #333333;
	font-size: 20rpx;
	text-align: center;
	padding-bottom: 30rpx;
	.cmt-w-left,
	.cmt-w-right {
		font-size: 28rpx;
		text {
			margin-right: 10rpx;
		}
		.cmt-w_2 {
			color: #666666;
			font-weight: bold;
		}
		.cmt-w_3 {
			color: #666666;
			font-size: 22rpx;
		}
	}
	.cmt-w-right {
		text {
		}
		.cmt-btn {
			display: inline;
			width: 94rpx;
			height: 40rpx;
			font-size: 22rpx;
			color: #5178b1;
			line-height: 40rpx;
			padding: 7rpx 20rpx;
			margin: 0;
			border: 1px solid #5178b1;
		}
	}
}
.cmt-w-box {
	// border-top: 2rpx solid #c6c6c6;
	padding: 20rpx;
	margin: 0 20rpx;
	padding-bottom: 0;
	background-color: #ffffff;
	.cmd-top {
		padding: 0 40rpx;
		margin-top: 20rpx;
		margin-bottom: 30rpx;
	}
	.cmt-w-list {
		flex: 1 1 auto;
		color: #999999;
		font-size: 18rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		.cmt-w-l-marTop {
			margin-top: 15rpx;
			.cmt-w-list-nber {
				color: #333333;
				font-size: 22rpx;
				text {
					color: #999999;
					font-size: 18rpx;
				}
			}
		}
		.cmt-w-list-nber {
			color: #333333;
			font-size: 22rpx;
		}
	}
}
</style>
